package demo2;

public class Dog extends Aminal implements IRunning{

    @Override
    public void eat() {
        System.out.println(name+ " 再吃狗粮");
    }

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void run() {
        System.out.println(this.name + " 在跑");
    }
}
